projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bfb330
)
Sven Joachim <svenjoac at gmx.de>
author
Glenn Morris
<rgm@gnu.org>
Fri, 25 Jan 2008 04:39:51 +0000
(
04:39
+0000)
committer
Glenn Morris
<rgm@gnu.org>
Fri, 25 Jan 2008 04:39:51 +0000
(
04:39
+0000)
(kill-buffer-if-not-modified): Don't pass t to buffer-modified-p.
lisp/view.el
patch
|
blob
|
history
diff --git
a/lisp/view.el
b/lisp/view.el
index c89fd692152fbed2ffd215408c456fd9de5ce69d..7a56f9832188d5d2afd51982d8a95689b2497211 100644
(file)
--- a/
lisp/view.el
+++ b/
lisp/view.el
@@
-244,7
+244,7
@@
This is local in each buffer, once it is used.")
;; types C-x C-q again to return to view mode.
(defun kill-buffer-if-not-modified (buf)
"Like `kill-buffer', but does nothing if the buffer is modified."
- (let ((buf (
or (bufferp buf) (get-buffer buf)
)))
+ (let ((buf (
get-buffer buf
)))
(and buf (not (buffer-modified-p buf))
(kill-buffer buf))))